<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>店主信息</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		
		<link href="/static/weichat/css/style.css" rel="stylesheet" type="text/css" media="all" />
		<link rel="stylesheet" type="text/css" href="/static/manage/common/bootstrap/js/bootstarp-3.3.7/css/bootstrap.min.css" />
		<script src="/static/manage/common/bootstrap/js/jquery-3.2.0.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="/static/manage/common/bootstrap/js/bootstarp-3.3.7/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="/static/manage/common/bootstrap/js/bootstarp-table-1.11.1/bootstrap-table.min.css" />
		<script src="/static/manage/common/bootstrap/js/bootstarp-table-1.11.1/bootstrap-table.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="/static/manage/common/bootstrap/js/bootstarp-table-1.11.1/bootstrap-table-zh-CN.min.js" type="text/javascript" charset="utf-8"></script>
		
		
</head>
	
<body>

<form class="form-inline" action="/bisshopuser/" method="post">
	<p align="left">
  <div class="form-group">
    <label for="exampleInputName2">店主账号:</label>
    <input type="text" class="form-control" id="account" name="account" placeholder="请输入账号">
  </div>
  <div class="form-group">
    <label for="exampleInputName2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;姓名:</label>
    <input type="text" class="form-control" id="username" name="username" placeholder="">
  </div>
  <div class="form-group">
   <label for="exampleInputName2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;状态:</label>
  <select class="form-control" id="status" name="status">
  <option value="">---------------------------------</option>
  <option value="0">离职</option>
  <option value="1">在职</option>
  </select>
  </div>
  </p>
  <p align="left">
  <div class="form-group">
    <label for="exampleInputName2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手机:</label>
    <input type="text" class="form-control" id="mobile" name="mobile" placeholder="">
  </div>
  <div class="form-group">
    <label for="exampleInputName2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;身份证:</label>
    <input type="text" class="form-control" id="idno" name="idno" placeholder="">
  </div>
  <div class="form-group">
    <label for="exampleInputName2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;邮箱:</label>
    <input type="text" class="form-control" id="email" name="email" placeholder="">
  </div>
  
   	<button type="button" class="btn btn-primary" id="but2">搜索</button>
   	<button type="reset" class="btn btn-primary" id="but2">重置</button>
  </p>
</form>

<!-- 添加模态框  -->	
<!-- Large modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">添加</button>

<div class="modal fade bs-example-modal-lg" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      		<form class="form-inline" id="fm2">
      				 <label for="account">新增店主信息</label>
      			<table class="table table-bordered">
 				 	<tr>
 				 	<td>
 				 		<label for="account">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店主账号:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="account" name="account" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="show_status">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;姓名:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="username" name="username" placeholder="">
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="password">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;密码:</label>
 				 	</td>
 				 	<td>
 				 		<input type="password" class="form-control" id="password" name="password" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="password2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;确认密码:</label>
 				 	</td>
 				 	<td>
 				 		<input type="password" class="form-control" id="password2" name="password2" placeholder="">
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="mobile">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手机:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="mobile" name="mobile" placeholder="">
 				 	</td>
 				 	<td>
 				 		<label for="idno">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;身份证:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="idno" name="idno" placeholder="">
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="phone">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;电话:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="phone" name="phone">
 				 	</td>
 				 	<td>
 				 		<label for="email">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;邮箱:</label>
 				 	</td>
 				 	<td>
 				 		<input type="email" class="form-control" id="email" name="email">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="sex">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;性别:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" name="sex">
    						<option value="">---------------------------------</option>
    						<option value="1">男</option>
    						<option value="2">女</option>
    						<option value="3">保密</option>
    					</select>
 				 	</td>
 				 	<td>
 				 		<label for="status">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户状态:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" name="status">
    						<option value="">---------------------------------</option>
    						<option value="0">离职</option>
    						<option value="1">在职</option>
    						
    					</select>
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="remark">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备注:</label>
 				 	</td>
 				 	<td colspan="3">
 				 		<textarea id="remark" name="remark" style="width:680px;height:50px;"></textarea>
 				 	</td>
 				 </tr>
 				  
 				  
 				  
 				  
			</table>
      		
      		<div class="modal-footer">
        		<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
       			<button type="button" class="btn btn-primary" id="add">保存</button>
      		</div>
      		</form>
    </div>
  </div>
</div>
	
	<!-- 修改的模态框 -->
	<div class="modal fade bs-example-modal-lg" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
    		
    		<form class="form-inline" id="fm3">
      				 <label for="account">修改店主信息</label>
      				 
      			<table class="table table-bordered">
 				 	<tr>
 				 	<td>
 				 		<label for="account">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店主账号:</label>
 				 	</td>
 				 	<td>
 				 		<input type="hidden" class="form-control" id="shop_user_id" name="shop_user_id" placeholder="" value="">
 				 		<input type="text" class="form-control" id="account2" name="account" placeholder="" value="">
 				 	</td>
 				 	<td>
 				 		<label for="show_status">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;姓名:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="username2" name="username" placeholder="" value="">
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="mobile">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手机:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="mobile2" name="mobile" placeholder="" value="">
 				 	</td>
 				 	<td>
 				 		<label for="idno">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;身份证:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="idno2" name="idno" placeholder="" value="">
 				 	</td>
 				 </tr>
 				 <tr>
 				 	<td>
 				 		<label for="phone">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;电话:</label>
 				 	</td>
 				 	<td>
 				 		<input type="text" class="form-control" id="phone2" name="phone" value="">
 				 	</td>
 				 	<td>
 				 		<label for="email">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;邮箱:</label>
 				 	</td>
 				 	<td>
 				 		<input type="email" class="form-control" id="email2" name="email" value="">
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="sex">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;性别:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" id="sex2" name="sex">
    						<option value="">---------------------------------</option>
    						<option value="1">男</option>
    						<option value="2">女</option>
    						<option value="3">保密</option>
    					</select>
 				 	</td>
 				 	<td>
 				 		<label for="status">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户状态:</label>
 				 	</td>
 				 	<td>
 				 		<select class="form-control" id="status2" name="status">
    						<option value="">---------------------------------</option>
    						<option value="0">离职</option>
    						<option value="1">在职</option>
    						
    					</select>
 				 	</td>
 				 </tr>
 				  <tr>
 				 	<td>
 				 		<label for="remark">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备注:</label>
 				 	</td>
 				 	<td colspan="3">
 				 		<textarea id="remark2" name="remark" style="width:680px;height:50px;"></textarea>
 				 	</td>
 				 </tr>
			</table>
      		
      		
      		<div class="modal-footer">
        		<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
       			<button type="button" class="btn btn-primary" onclick="updaa()">保存</button>
      		</div>
      		</form>
    </div>
  </div>
</div>
<!-- 密码重置模态框-->
	<div class="modal fade" tabindex="-1" role="dialog" id="myModal3">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">密码重置</h4>
      </div>
      <div class="modal-body">
      	
        	<form class="form-horizontal">
        		<input type="hidden" class="form-control" id="shop_user_id" name="shop_user_id" placeholder="" value="">
 				 <div class="form-group">
   					 <label for="inputEmail3" class="col-sm-2 control-label">密码:</label>
   					 <div class="col-sm-10">
     				 <input type="password" class="form-control" id="passwordU" name="password" placeholder="输入密码">
    				</div>
 				 </div>
  				<div class="form-group">
    				<label for="inputPassword3" class="col-sm-2 control-label">确认密码:</label>
    				<div class="col-sm-10">
     				 <input type="password" class="form-control" id="passwordUU" name="passwordUU" placeholder="确认密码">
   				 </div>
  				</div>
			</form>
			
			
      </div>
      <div class="modal-footer">
      	<p align="center">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" onclick="upps()">保存密码</button>
        </p>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
	
		<div>
			<table id="table">

			</table>
		</div>
</body>
<script type="text/javascript">
	function changeDateFormat(cellval) {
        var dateVal = cellval + "";
        if (cellval != null) {
            var date = new Date(parseInt(dateVal.replace("/Date(", "").replace(")/", ""), 10));
            var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
            var currentDate = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
            
            var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
            var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
            var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
            
            return date.getFullYear() + "-" + month + "-" + currentDate + " " + hours + ":" + minutes + ":" + seconds;
        }
    }
	</script>
		
		
		<script type="text/javascript">
		
			$(function() {
				
			

				//1.初始化Table

				var oTable = new TableInit();

				oTable.Init();

				var message = document.getElementById("message").value;

				if(message != null && message != "") {

					alert(message);

				}
			});
				
				
				var TableInit=function(){
					var oTableInit=new Object();
					//初始化table
					oTableInit.Init=function(){
						
					
					
				$("#table").bootstrapTable({
					method:'get',
					contentType:"application/x-www-form-urlencoded",
					url:"/bisshopuser/",	//请求后台的url（*）
						striped: true, //是否显示行间隔色

						locale: 'zh-CN', //中文支持

						pagination: true, //是否开启分页（*）

						pageNumber: 1, //初始化加载第一页，默认第一页

						pageSize: 2, //每页的记录行数（*）

						pageList: [2, 3, 4], //可供选择的每页的行数（*）

						sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

						/* showRefresh: true, //刷新按钮 */

						queryParams: oTableInit.queryParams, //传递参数（*）

						strictSearch: true,

						/* showColumns: true, //是否显示所有的列 */

						/* showRefresh: true, //是否显示刷新按钮 */

						minimumCountColumns: 2, //最少允许的列数

						/* clickToSelect: true, //是否启用点击选中行 */

						uniqueId: "project_id", //每一行的唯一标识，一般为主键列

						columns: [{
							field: 'account',
							title: '店主账号',
							align: 'center',
						}, {
							field: 'username',
							title: '姓名',
							align: 'center',
						}, {
							field: 'sex',
							title: '性别',
							align: 'center',
							formatter:function(v,r,i){
								switch (Number(v)){
									case 1:
										return "男";
										break;
									case 2:
										return "女";
										break;
									case 0:
										return "保密";
										break;
								}
							}
						}, {
							field: 'mobile',
							title: '手机',
							align: 'center',
						}, {
							field: 'idno',
							title: '身份证',
							align: 'center',
						}, {
							field: 'email',
							title: '邮箱',
							align: 'center',
						}, {
							field: 'phone',
							title: '电话',
							align: 'center',
						}, {
							field: 'status',
							title: '状态',
							align: 'center',
							formatter:function(v,r,i){
								switch (Number(v)){
									case 0:
										return "离职";
										break;
									case 1:
										return "在职";
										break;
								}
							}
						},{
							field: 'create_time',
							title: '创建时间',
							align: 'center',
							formatter: function (value, row, index) {
                				return changeDateFormat(value)
							}
						}, {
							
							title: '操作',
							align: 'center',
							formatter : function(v,r,i){
								return '<button onclick="dele('+r.shop_user_id+')" class="btn btn-warning">删除<span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button> <button onclick="upda('+r.shop_user_id+')" class="btn btn-warning" data-toggle="modal" data-target="#myModal2">修改<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></button><button onclick="updapassword('+r.shop_user_id+')" class="btn btn-warning" data-toggle="modal" data-target="#myModal3">密码重置<span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button>'
							}
						}]
					});
					};
			
					//得到查询的参数

					oTableInit.queryParams = function(params) {

						var temp = { //这里的键的名字和控制器的变量名必须一直，这边改动，控制器也需要改成一样的

							limit: params.limit, //页面大小

							offset: params.offset, //偏移量
							pageSize:params.limit,
							account:$("#account").val(),
							username:$("#username").val(),
							mobile:$("#mobile").val(),
							idno:$("#idno").val(),
							email:$("#email").val(),
							status:$("#status").val(),
							
						};
						return temp;
					};
					return oTableInit;
				};
				
				//删除
				function dele(shop_user_id){
					
					$.ajax({
						
						type:"post",
						url:"/bisshopuser/del/"+shop_user_id,
						dataType:"json",
						success:function(data){
								$("#table").bootstrapTable('refresh');
						},
						
					})
				}
				
				//添加
				$("#add").click(function(){
					var p1=$("#password").val();
					var p2=$("#password2").val();
					$.ajax({
						type:"post",
						url:"/bisshopuser/adds",
						data:$("#fm2").serialize(),
						success:function(data){
							if (p1!=p2) {
								alert("密码不相同");
							} else{
								$("#myModal").modal("hide");
								$("#table").bootstrapTable('refresh');
							}
							 
						}
					});
				})
				
				//修改先查一遍
				function upda(shop_user_id){
					
					$.ajax({
						type:"post",
						url:"/bisshopuser/updateAll",
						data:{
							shop_user_id:shop_user_id
						},
						success:function(data){
							$("#shop_user_id").val(data.shop_user_id),
							$("#account2").val(data.account),
							$("#username2").val(data.username),
							$("#mobile2").val(data.mobile),
							$("#idno2").val(data.idno),
							$("#phone2").val(data.phone),
							$("#email2").val(data.email),
							$("#sex2").val(data.sex),
							$("#status2").val(data.status),
							$("#remark2").val(data.remark)
						}
					})
				}
				
				//修改
				function updaa(shop_user_id){
					$.ajax({
						type:"post",
						url:"/bisshopuser/updateId",
						data:{
							shop_user_id:$("#shop_user_id").val(),
							account:$("#account2").val(),
							username:$("#username2").val(),
							mobile:$("#mobile2").val(),
							idno:$("#idno2").val(),
							phone:$("#phone2").val(),
							email:$("#email2").val(),
							sex:$("#sex2").val(),
							status:$("#status2").val(),
							remark:$("#remark2").val()
							
						},
						success:function(data){
							$("#myModal2").modal("hide");
							$("#table").bootstrapTable('refresh');
						}
					})
				}
				
				//重置密码
				function upps(shop_user_id){
					var p3=$("#passwordU").val();
					var p4=$("#passwordUU").val();
					$.ajax({
						type:"post",
						url:"/bisshopuser/updapassword",
						data:{
							shop_user_id:$("#shop_user_id").val(),
							password:$("#passwordU").val()
						},
						success:function(data){
							if(p3!=p4){
								alert("密码不一致");
							}else{
								$("#myModal3").modal("hide");
								$("#table").bootstrapTable('refresh');
							}
							
						}
						
					});
				}
				
				$('#but2').click(function(){
					
					$("#table").bootstrapTable('refresh');
				})
				
			
		</script>
</html>